/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { LoggerConfig } from '../utils/Logger';

// 配置文件，在hvigor中配置
export class PluginConfig {
  // 注册路由的方法的文件名
  builderFileName?: string
  // 注册路由的方法的文件路径
  builderDir?: string
  // 路由表所在路径
  routerMapDir?: string
  // 模块名
  moduleName?: string
  // 模块路径
  modulePath?: string
  // 装饰器名称
  annotation?: string
  scanDirs?: string[]
  // 扫描的文件路径
  scanFiles?: string[]
  // 查找生成struct的关键字
  viewKeyword?: string[]
  // 生成代码模板
  builderTpl?: string
  // 日志配置
  logging?: LoggerConfig
  // 是否隐藏标题栏
  hideTitleBar?: boolean = true
} 